/**
  ******************************************************************************
  * @file    fsmc_transfer.h
  * @author  yan
  * @version V1.0
  * @date    2016-11-26
  * @brief   This file contains the transfer function library
  ******************************************************************************
	*/
	
	
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __FSMC_TRANSFER_H
#define __FSMC_TRANSFER_H


/* Includes ------------------------------------------------------------------*/
#include "stm32f10x.h" 


/** @addtogroup FSMC_TRANSFER
  * @{
  */

/** 
  * @brief  Configuration Mode enumeration  
  */

typedef enum
{ 
	  OX0 =  0x00,
	  OX1 =  0x20,
	  OX2 =  0x10,
	  OX3 =  0x30,
	  OX4 =  0x08,
	  OX5 =  0x28,
	  OX6 =  0x18,
	  OX7 =  0x38
  
}FSMC_TRANSFER_Address;

/** 
  * @brief  fsmctransfer function structure definition  
  */
struct _m_fsmctransfer_dev
{
	void (*init)(void);
	void (*write)(uint16_t, FSMC_TRANSFER_Address);
	uint16_t (*read)(FSMC_TRANSFER_Address );
};


/** @addtogroup FSMCTRANSFER_Exported_Structure
  * @{
  */

extern struct _m_fsmctransfer_dev fsmctransfer_dev;


/**
  * @}
  */


/**
  * @}
  */
#endif

